package com.frogs.ucenter.entity;

import java.io.Serializable;
import java.util.Collections;
import java.util.Date;
import java.util.List;

import com.alibaba.fastjson.JSON;
import com.frogs.system.util.GoodsEvaluateEnum;

/**
 * 商品评价信息
 *
 * @author lijian
 * @version 2014年3月18日 - 上午10:44:20
 */
public class GoodsEvaluateInfo implements Serializable {

	private static final long serialVersionUID = -6663088893181829852L;
	
	/** 商品评价ID */
	private Integer id;
	/** 账号ID */
	private Integer userId;
	/** 账号名称 */
	private String userName = "匿名用户";
	/** 用户昵称 */
	private String nickName = "匿名用户";
	/** 用户头像 */
	private String headImageUrl;
	/** 用户类型 */
	private Integer userType;
	/** 用户类型名称 */
	private String userTypeName;
	/** 用户的商品评分 */
	private Integer score = 0;
	/** 原始商品ID */
	private Integer originalGoodsId;
	/** 商品ID */
	private Integer goodsId;
	/** 评价内容 */
	private String content;
	/** 是否药师认证评价 */
	private Integer isPharmacistEvaluate = GoodsEvaluateEnum.IS_PHARMACIST_EVALUATE_NO.getId();
	/** 好评数_可为负 */
	private Integer receivedSeveral;
	/** 评价时间 */
	private Date createTime;
	/** 标签 */
	private String tag;
	/** 购买时间 */
	private Date buyTime;
	/** 有用数 */
	private Integer usefulNumber;
	/** 赞 */
	private Integer praise = 0;
	/** 踩 */
	private Integer trample = 0;
	/** 适用范围 */
	private Integer applicablePlatformId;
	/** 商品评价评论列表 */
	private List<GoodsEvaluateCommentInfo> goodsEvaluateCommentList = Collections.emptyList();
	/** 评论数 */
	private Integer commentCount = 0;
	/** 
	 * 最热评价<br>
	 * 默认是0,最热是1
	 */
	private Integer isHotEvaluate = GoodsEvaluateEnum.HOT_EVALUATE_NO.getId();

	/**套餐id*/
	private Integer mealId = 0;
	/** */
	public GoodsEvaluateInfo() {
	}

	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getOriginalGoodsId() {
		return originalGoodsId;
	}

	public void setOriginalGoodsId(Integer originalGoodsId) {
		this.originalGoodsId = originalGoodsId;
	}

	public Integer getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getIsPharmacistEvaluate() {
		return isPharmacistEvaluate;
	}

	public void setIsPharmacistEvaluate(Integer isPharmacistEvaluate) {
		this.isPharmacistEvaluate = isPharmacistEvaluate;
	}

	public Integer getReceivedSeveral() {
		return receivedSeveral;
	}

	public void setReceivedSeveral(Integer receivedSeveral) {
		this.receivedSeveral = receivedSeveral;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public Date getBuyTime() {
		return buyTime;
	}

	public void setBuyTime(Date buyTime) {
		this.buyTime = buyTime;
	}

	public Integer getUsefulNumber() {
		return usefulNumber;
	}

	public void setUsefulNumber(Integer usefulNumber) {
		this.usefulNumber = usefulNumber;
	}

	public Integer getPraise() {
		return praise;
	}

	public void setPraise(Integer praise) {
		this.praise = praise;
	}

	public Integer getTrample() {
		return trample;
	}

	public void setTrample(Integer trample) {
		this.trample = trample;
	}

	public Integer getApplicablePlatformId() {
		return applicablePlatformId;
	}

	public void setApplicablePlatformId(Integer applicablePlatformId) {
		this.applicablePlatformId = applicablePlatformId;
	}

	public List<GoodsEvaluateCommentInfo> getGoodsEvaluateCommentList() {
		return goodsEvaluateCommentList;
	}

	public void setGoodsEvaluateCommentList(List<GoodsEvaluateCommentInfo> goodsEvaluateCommentList) {
		this.goodsEvaluateCommentList = goodsEvaluateCommentList;
	}

	public Integer getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(Integer commentCount) {
		this.commentCount = commentCount;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getHeadImageUrl() {
		return headImageUrl;
	}

	public void setHeadImageUrl(String headImageUrl) {
		this.headImageUrl = headImageUrl;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public String getUserTypeName() {
		return userTypeName;
	}

	public void setUserTypeName(String userTypeName) {
		this.userTypeName = userTypeName;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public Integer getIsHotEvaluate() {
		return isHotEvaluate;
	}

	public void setIsHotEvaluate(Integer isHotEvaluate) {
		this.isHotEvaluate = isHotEvaluate;
	}
	
	public Integer getMealId() {
		return mealId;
	}

	public void setMealId(Integer mealId) {
		this.mealId = mealId;
	}
}
